package com.thunisoft.beanutils;

import com.thunisoft.beanutils.bean.Father;
import com.thunisoft.beanutils.bean.Son;
import com.thunisoft.beanutils.service.impl.ApacheBeanUtils;
import com.thunisoft.beanutils.service.impl.CglibBeanUtils;

/**
 * @title App.java
 * @package com.thunisoft.beanutils
 * @projectName spring.boot
 * @author yzj 
 * @date 2019年6月12日 下午3:07:20
 */
public class App {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Son son=new Son(45, "张三", "男", "test");
		Father father=new Father();
		ApacheBeanUtils apacheBeanUtils=new ApacheBeanUtils();
		//apacheBeanUtils.copy(son, father);
		
		
		CglibBeanUtils cglibBeanUtils=new CglibBeanUtils();
		cglibBeanUtils.copy(son, father);
		
		System.out.println(son);
		System.out.println(father);
		
		
	}

}
